package com.ts.util;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Slf4j
public class Array2List {
    public static <T>  List<T> transferArrayToList(T[] array){
        List<T> transferedList = new ArrayList<>();
        Arrays.stream(array).forEach(arr -> transferedList.add(arr));
        return transferedList;
    }


    public static void main(String args[]){
        String str = "L22B107";
        log.info(str.substring(str.indexOf("B")+1));
    }

}
